package com.windchime.blog.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 友链表
 * </p>
 *
 * @author WindChime
 * @since 2021-08-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_friend")
public class Friend implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 友链ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 友链名
     */
    private String name;

    /**
     * 性别
     */
    private Boolean sex;

    /**
     * 友链接
     */
    private String link;

    /**
     * 友链封面
     */
    private String cover;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
